<?php

namespace App\Models\Purchase;

use App\Models\Common\ExtFeild\ExtFeild;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;

class PurchasePreSettleOrderSub extends Model
{
    protected $table = 'purchase_pre_settle_order_sub';
    public $timestamps = false;
    protected $primaryKey = 'id';
    protected $guarded = ['_token'];

    public function getTotalWeightAttribute($value)
    {
        return $value / 10;
    }


    public function getWeightAttribute($value)
    {
        return $value / 10;
    }
}
